import Vue from 'vue';
import VueRouter from 'vue-router';

Vue.use(VueRouter);

const routes = [
    {
        path: '/',
        redirect: '/poetry'
    },
    {
        path: '/poetry',
        name: 'poetry',
        component: () => import('@/views/poetry')
    },
    {
        path: '/about',
        name: 'about',
        component: () => import('@/views/AboutView.vue')
    },
    {
        path: '/sentence',
        name: 'sentence',
        component: () => import('@/views/sentence')
    }
];

const router = new VueRouter({
    mode: 'history',
    base: process.env.BASE_URL,
    routes
});

export default router;
